Skip to content

Fix #4350: Do not check prefix of class type parameters #4363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 27, 2018

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Apr 24, 2018

TODO

  • Fix infinite recursion in neg test
  • Fix substitution of type

@biboudis
Copy link
Contributor

@nicolasstucki it works for me (apart from the infinite recursion if someone omits the evidence).

The other error we were getting was indeed a bug in the code.

@@ -17,12 +17,14 @@ class TreeCleaner extends tpd.TreeMap {
/** List of symbols and their types for type aliases `type T = U` */
private[this] var aliasesSyms: List[Symbol] = Nil
private[this] var aliasesTypes: List[Type] = Nil
private[this] val aliases = newMutableSymbolMap[Tree]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file are not relevant to the fix right? BTW can we add a comment for the aliases var just for symmetry? 😛

@biboudis biboudis merged commit 8d6d8ac into scala:master Apr 27, 2018
@allanrenucci allanrenucci deleted the fix-#4350 branch April 27, 2018 11:40
nicolasstucki added a commit to dotty-staging/dotty that referenced this pull request Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants